﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ForgetPassword.aspx.cs" Inherits="Directory.Web.ForgetPassword" MasterPageFile="~/DefaultMasterPage.master" Theme="Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server" >
	<title><% = Directory.Web.WebSettings.GetInstance().SiteName %> — 找回密码</title>
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
	<asp:MultiView ID="MultiView1" runat="server">
		<asp:View ID="View1" runat="server">
			<p>
				用户名：<asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
				<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
					ErrorMessage="*" ControlToValidate="tbUserName"></asp:RequiredFieldValidator>
				<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
					ErrorMessage="格式不正确" ControlToValidate="tbUserName" 
					ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
			</p>
			<asp:Button ID="btnValidateUserName" runat="server" Text="下一步" 
				onclick="btnValidateUserName_Click" />
		</asp:View>
		<asp:View ID="View2" runat="server">
			<p>
				密码问题：<asp:Label ID="lbPasswordQuestion" runat="server" Text=""></asp:Label>
			</p>
			<p>
				问题答案：<asp:TextBox ID="tbPasswordAnswer" runat="server"></asp:TextBox>
			</p>
			<asp:Button ID="btnPreStep" runat="server" Text="上一步" 
				onclick="btnPreStep_Click" />
			<asp:Button ID="btnValidatePasswordAnswer" runat="server" Text="下一步" 
				onclick="btnValidatePasswordAnswer_Click" />
		</asp:View>
		<asp:View ID="View3" runat="server">
			您的密码已被重设为：
			<asp:Label ID="lbNewPassword" runat="server" Text="" ForeColor="Red"></asp:Label><br />
			请复制密码并点击<a href="User/ChangePassword.aspx"><span style="color:Red">这里</span></a>修改密码！
		</asp:View>
	</asp:MultiView>
	<asp:Literal ID="ltMsg" runat="server"></asp:Literal>
</asp:Content>